package com.ruoyi.file.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 文件信息对象 file_info
 * 
 * @author shushuang
 * @date 2019-11-27
 */
public class FileInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 业务类型 */
    @Excel(name = "业务类型")
    private String bizeType;

    /** 业务id */
    @Excel(name = "业务id")
    private Long bizeId;

    /** 文件原名称 */
    @Excel(name = "文件原名称")
    private String originalName;

    /** 文件新名称(随机码） */
    private String newName;

    /** 文件类型 */
    @Excel(name = "文件类型")
    private String fileType;

    /** 文件大小(kb) */
    @Excel(name = "文件大小(kb)")
    private Long fileSize;

    /** 文件服务器存储绝对路径 */
    @Excel(name = "文件服务器存储绝对路径")
    private String filePath;

    /** 文件相对路径，域名+此字段为该资源的请求地址 */
    @Excel(name = "文件相对路径，域名+此字段为该资源的请求地址")
    private String relativePath;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    /** 最近修改时间 */
    @Excel(name = "最近修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateTime;

    /** 逻辑删除(默认0正常，1文件已被物理删除) */
    private Integer delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBizeType(String bizeType) 
    {
        this.bizeType = bizeType;
    }

    public String getBizeType() 
    {
        return bizeType;
    }
    public void setBizeId(Long bizeId) 
    {
        this.bizeId = bizeId;
    }

    public Long getBizeId() 
    {
        return bizeId;
    }
    public void setOriginalName(String originalName) 
    {
        this.originalName = originalName;
    }

    public String getOriginalName() 
    {
        return originalName;
    }
    public void setNewName(String newName) 
    {
        this.newName = newName;
    }

    public String getNewName() 
    {
        return newName;
    }
    public void setFileType(String fileType) 
    {
        this.fileType = fileType;
    }

    public String getFileType() 
    {
        return fileType;
    }
    public void setFileSize(Long fileSize) 
    {
        this.fileSize = fileSize;
    }

    public Long getFileSize() 
    {
        return fileSize;
    }
    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }
    public void setRelativePath(String relativePath) 
    {
        this.relativePath = relativePath;
    }

    public String getRelativePath() 
    {
        return relativePath;
    }
    public void setCreatTime(Date creatTime) 
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime() 
    {
        return creatTime;
    }
    public void setUpdateTime(Date updateTime)
    {
        this.updateTime = updateTime;
    }

    public Date getUpdateTime()
    {
        return updateTime;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bizeType", getBizeType())
            .append("bizeId", getBizeId())
            .append("originalName", getOriginalName())
            .append("newName", getNewName())
            .append("fileType", getFileType())
            .append("fileSize", getFileSize())
            .append("filePath", getFilePath())
            .append("relativePath", getRelativePath())
            .append("creatTime", getCreatTime())
            .append("lastUpdateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
